package com.zhb.austapp.fragment;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.fragment.app.Fragment;

/**
 * @ProjectName: AustApp
 * @Package: com.zhb.austapp.fragment
 * @ClassName: BaseFragment
 * @Author: rain
 * @CreateDate 2021/5/3 23:19
 */
public abstract class BaseFragment extends Fragment {
    private Context mContext;
    @Override
    public void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mContext = getActivity();
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return initView();
    }

    public abstract View initView();

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initData();
    }
    public void initData(){

    }

}
